import React, {useContext} from 'react'
import { Context } from './Ancestor'

export default function Little() {
    const { state, setState } = useContext(Context)
    const onButtonClick = () => {
        setState('后代知道了');
    }
  return (
    <div>
      {state}
      <button onClick={onButtonClick}> 后代知道了</button>
    </div>
  )
}
